﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IMeiWeiWebService.Providers
{
    public class SenceClassificationProvider
    {
        IMeiWei.BLL.sceneclassification bll_sence = new IMeiWei.BLL.sceneclassification();

        public List<IMeiWei.Model.sceneclassification> LoadSenceClassificationes()
        {
            return bll_sence.GetModelList(" 1=1");
        }

        public string SaveSenceClassificationes(string id, string senceName)
        {
            IMeiWei.Model.sceneclassification modle_sence = new IMeiWei.Model.sceneclassification();

            modle_sence.Id = id;
            modle_sence.SceneName = senceName;
            modle_sence.SceneStatus = "ACTIVE";
            modle_sence.CreateBy = "SYSTEM_SET";
            modle_sence.CreateTime = DateTime.Now;
            modle_sence.ModifyBy = "SYSTEM_SET";
            modle_sence.ModifyTime = DateTime.Now;

            bll_sence.Add(modle_sence);

            return "SUCCESS";

        }
    }
}